package com.shop2cn.app.liveseller.testcase;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.shop2cn.app.liveseller.parameter.*;
import com.shop2cn.app.liveseller.service.*;
import com.shop2cn.iapi.agentproducts.parameter.AddAgentProductBean;
import com.ymttest.business.service.AddAgentProductCallService;
import com.ymttest.business.service.AuthCallServiceV2;
import com.ymttest.business.service.LiveRoomShop2cnCallService;
import com.ymttest.business.service.shenqi.GodmchManageCallService;
import com.ymttest.database.model.livesellerShop2cn.*;
import com.ymttest.database.sqlwapper.livesellerShop2cn.LiveRoomShop2cnWapper;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*暂停销售商品
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_SuspendLiveProduct{
	private static SuspendLiveProductBean suspendliveproductBean;
	private static SuspendLiveProductCall suspendliveproductCall;
	private static LiveRoomShop2cnWapper LiveRoomShop2cnWapper;
	private static int sellerId ;
	private static String token ;
	private static int csId;
	private static String cstoken;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("暂停销售商品");
		try {
			sellerId = GodmchManageCallService.CreateSellerMch();
			token=AuthCallServiceV2.createToken(sellerId, "app");
			csId = GodmchManageCallService.bindClientService(
					sellerId, 1);
			cstoken = AuthCallServiceV2.createToken(csId, "app");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

	@Before
	public void caseUp() {
		suspendliveproductBean=new SuspendLiveProductBean();
		suspendliveproductCall=new SuspendLiveProductCall();
		LiveRoomShop2cnWapper=new LiveRoomShop2cnWapper();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(suspendliveproductCall.getOpurl());
		LiveRoomShop2cnWapper=null;
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_SuspendLiveProduct_001() {
		Logger.start(true,"status0未开始直播暂停销售商品成功");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(0, listm.get(0).get("Status"), "验证Status暂停");
			Logger.verifyEquals("{}", suspendliveproductCall.getReturnData(), "验证Code");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(0, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_SuspendLiveProduct_002() {
		Logger.start(true,"不输入liveid失败");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
//			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("400", suspendliveproductCall.getString("code"), "验证Code");
			Logger.verifyIsContains("参数错误", suspendliveproductCall.getString("msg"), "验证Msg");
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(1, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_SuspendLiveProduct_003() {
		Logger.start(true,"不输入ProductId失败");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			suspendliveproductBean.setLiveId(createlive.getId());
//			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("400", suspendliveproductCall.getString("code"), "验证Code");
			//商品id不能为空
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			//校验商品不会修改在售状态
			Logger.verifyEquals(1, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_004() {
		Logger.start(true,"liveid和ProductId不匹配不操作");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			suspendliveproductBean.setLiveId(createlive.getId()+1);
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("201", suspendliveproductCall.getString("code"), "验证Code");
			
			Logger.comment("不匹配不修改");
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(1, listm.get(0).get("Status"), "验证Status暂停");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(1, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_SuspendLiveProduct_005() {
		Logger.start(true,"ProductId不存在不操作");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid+1);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("{}", suspendliveproductCall.getReturnData(), "验证Code");
			
			Logger.comment("不匹配不修改");
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(1, listm.get(0).get("Status"), "验证Status暂停");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(1, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_009() {
		Logger.start(true,"status7直播推流结束暂停销售商品失败");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnWapper.updateLiveRoomPushStatus(createlive.getId(), 7);
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("201", suspendliveproductCall.getString("code"), "验证Code");
			Logger.verifyEquals("直播已关闭或已结束", suspendliveproductCall.getString("msg"), "验证Msg");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_010() {
		Logger.start(true,"status2推流直播暂停销售商品成功");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("{}", suspendliveproductCall.getReturnData(), "验证Code");
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(0, listm.get(0).get("Status"), "验证Status暂停");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(0, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_011() {
		Logger.start(true,"status3断流直播暂停销售商品成功");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			LiveRoomShop2cnWapper.updateLiveRoomPushStatus(createlive.getId(), 3);
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("{}", suspendliveproductCall.getReturnData(), "验证Code");
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(0, listm.get(0).get("Status"), "验证Status暂停");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(0, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_SuspendLiveProduct_012() {
		Logger.start(true,"暂停销售商品后开始销售再暂停销售成功");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnCallService.SuspendLiveProduct(createlive.getId(), pid,sellerId);
			LiveRoomShop2cnCallService.ResumeLiveProduct(createlive.getId(), pid,sellerId);
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("{}", suspendliveproductCall.getReturnData(), "验证Code");
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(0, listm.get(0).get("Status"), "验证Status暂停");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(0, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_013() {
		Logger.start(true,"status8直播推流结束暂停销售商品失败");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnWapper.updateLiveRoomPushStatus(createlive.getId(),8);
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("201", suspendliveproductCall.getString("code"), "验证Code");
			Logger.verifyEquals("直播已关闭或已结束", suspendliveproductCall.getString("msg"), "验证Msg");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_014() {
		Logger.start(true,"status9直播推流结束暂停销售商品失败");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnWapper.updateLiveRoomPushStatus(createlive.getId(),9);
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("201", suspendliveproductCall.getString("code"), "验证Code");
			Logger.verifyEquals("直播已关闭或已结束", suspendliveproductCall.getString("msg"), "验证Msg");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_SuspendLiveProduct_015() {
		Logger.start(true,"status10直播推流结束暂停销售商品失败");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			LiveRoomShop2cnWapper.updateLiveRoomPushStatus(createlive.getId(),10);
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+token;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			Logger.verifyEquals("201", suspendliveproductCall.getString("code"), "验证Code");
			Logger.verifyEquals("直播已关闭或已结束", suspendliveproductCall.getString("msg"), "验证Msg");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_SuspendLiveProduct_016() {
		Logger.start(true,"客服直播暂停销售商品成功");
		try {
			AddAgentProductBean addAgentProductBean = AddAgentProductCallService.initAddAgentProductV2(sellerId, "autotest",
					false);
			String pid = AddAgentProductCallService.AddAgentProduct(addAgentProductBean);
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomShop2cnCallService.CreateSellerLive(LiveRoomShop2cnCallService.initCreatesellerliveBean(),sellerId);
			LiveRoomShop2cnCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), Arrays.asList(pid));
			
			suspendliveproductBean.setLiveId(createlive.getId());
			suspendliveproductBean.setProductId(pid);
			suspendliveproductCall.setData(suspendliveproductBean);
			String head="accesstoken="+cstoken;
			suspendliveproductCall.addHeader("ymt-pars", head);
			suspendliveproductCall.callService();
			List<Map> listm = LiveRoomShop2cnWapper.selectLiveproductByIdAndPid(createlive.getId(), pid);
			Logger.verifyEquals(1, listm.size(), "验证商品记录加入到数据库");
			Logger.verifyEquals(0, listm.get(0).get("Status"), "验证Status暂停");
			Logger.verifyEquals("{}", suspendliveproductCall.getReturnData(), "验证Code");
			Logger.debug(listm);
			
			LiveRoom liveroom = LiveRoomShop2cnWapper.selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(0, liveroom.getPutawayCount(), "验证PutawayCount");
			Logger.verifyEquals(1, liveroom.getLiveProductNum(), "验证LiveProductNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}